﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using QingzimaDB;

namespace QingzimaLogicModel
{
    public class XinwenLM : JichuLM
    {
        #region 属性区
        public string Biaoti { get; set; }

        public string Neirong { get; set; }
        #endregion

        #region 构造区
        public XinwenLM()
        {

        }

        public XinwenLM(XinwenDB dbModel)
        {
            ID = dbModel.ID;
            Key = dbModel.Key;
            CreatedTime = dbModel.CreatedTime;
            Biaoti = dbModel.Biaoti;
            Neirong = dbModel.Neirong;
        }
        #endregion

        #region 方法区
        public void Save()
        {
            XinwenDB dbModel = new XinwenDB();
            dbModel.ID = ID;
            dbModel.Key = Key;
            dbModel.CreatedTime = CreatedTime;
            dbModel.Biaoti = Biaoti;
            dbModel.Neirong = Neirong;
            dbModel.Save();
        }
        #endregion
    }
}
